package com.tang.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author shankaka
 * @since 2023-04-14
 */
@TableName("sys_user")
@ApiModel(value = "User对象", description = "用户表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)

    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户类型：0代表普通用户，1代表管理员")
    private String type;

    @ApiModelProperty("账号状态（0正常 1停用）")
    private String status;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String phonenumber;

    @ApiModelProperty("用户性别（0男，1女，2未知）")
    private String sex;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("创建人的用户id")
    private Long createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新人")
    private Long updateBy;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("删除标志（0代表未删除，1代表已删除）")
    private Integer delFlag;

    @TableField(exist = false)
    private List<Long> roleIds;

    @TableField(exist = false)
    private String code;

    @ApiModelProperty("用户等级")
    private String userVip;
    @ApiModelProperty("用户经验")
    private String userExp;
    @ApiModelProperty("用户签到")
    private String userSign;
    @ApiModelProperty("用户签到时间")
    private Date signtime;
    @ApiModelProperty("用户会员")
    private String userSvip;
    @ApiModelProperty("会员到期时间")
    private Date sviptime;
    @ApiModelProperty("会员兑换次数")
    private Integer sviptotal;
    @ApiModelProperty("用户的uuid")
    private Integer userUuid;
}
